/**   
 * @Title: FinalConstants.java 
 * @author 7828wc   
 * @date 2015年9月8日 下午4:19:16 
 */
package com.shanghaionstar.utils;

import android.content.Context;

/**
 * @ClassName: FinalConstants.java
 * @Description: 常量数据存储类
 * @author 7828wc
 * @date 2015年9月8日
 */
public final class FinalConstants {

	public  static final String ANDROID_SMALL="ANDROID_SMALL";
	public static final int VEHICLE_DATA_REQUEST_CODE = 2;
	/**
	 * 主页BUTTON的ID值(登录,联系安吉星,车况,车辆位置,车辆上锁,经销商预约)
	 */
	public static final int HOME_BUTTON_LOGIN = 0, HOME_BUTTON_CALL = 1, HOME_BUTTON_REPORT = 2,
			HOME_BUTTON_LOCATION = 3, HOME_BUTTON_LOCK = 4, HOME_BUTTON_DEALER = 10;
	/**
	 * 主页BUTTON的ID值(安吉星服务介绍,收藏,安吉星故事,升级车主)
	 */
	public static final int HOME_BUTTON_SERVICE = 5, HOME_BUTTON_FAVORTIES = 6, HOME_BUTTON_STORY = 7,
			HOME_BUTTON_UPGRADE = 8, HOME_BUTTON_MRO = 9;

	/**
	 * 记录跳转登录后，在MainTabActivity.onActivityResult进行监听数据 <br/>
	 * 0为主页
	 */
	public static final int RQ_LOGIN_MAIN_HOME_ACTIVITY = 0;

	/**
	 * 获取主页已体验天数，Json返回数据解析
	 */
	public static final String TOTAL_REMAINING_DAY = "totalRemainingDay";
	/**
	 * 处理Http Header中Authorization的常量字符
	 */
	public static final String HTTP_AUTHORIZATION = "Authorization";
	
	public static final String DEVICE_ID = "DEVICE-ID";

	
	/**
	 * 查询Content Detail时默认的contentID
	 * 
	 */
	public static final String DEFAULT_CONTENT_ID = "0";
	
	/**
	 * 流量单位 
	 */
	public static final String UNIT_FLOW_MB= "MB";
	
	/**
	 * 流量单位 
	 */
	public static final String UNIT_FLOW_GB= "GB";

	/**
	 * 流量单位
	 */
	public static final String UNIT_FLOW_BYTE= "Byte";
	/**
	 * 存储已删除的POI
	 */
	public static final String IS_DELETE_POI = "deletePoi";
	
	/**
	 * 修改密码时传回到登录界面的password常量
	 */
	public static final String UPDATE_TEMP_MA = "password";
	/**
	 * Auto login
	 */
	public static final String IS_AUTO_LOGIN = "password";
	/**
	 * Auto login
	 */
	public static final String PREPAID_CARD_ACTIVATE_TYPE = "prepaidCardActivateType";

	/**
	 * 流量用了70%的时候，显示红点

	 */
	public static final int RULE_DATA = 70;
	/**
	 * 剩最后一个月的时候
	 */
	public static final int RULE_DAY = 365 - 30;

	//标示Fragment，跳转对应Fragment
	public static final String JUMP_FLAG ="jumpFlag";

	public static final String FROM_PAGE ="from_page";

	//标示是否验证Visitor
	public static final String CHECK_VISITOR="isCheckVisitor";
	//时间格式
	public static final String DATE_FORMAT="yyyy-MM-dd";
	//页面跳转传值
	public static final String PAGE_JUMP="yyyy-MM-dd";
	/**
	 * SharedPreferencesConfig
	 * 
	 * @author 7828wc
	 *
	 */
	public static final class SharedPreferencesConfig {
		/**
		 * 年检日期
		 */
		public static final String INSPECT_DATE = "inspectDate";

		/**
		 * 买车日期
		 */
		public static final String BUYCAR_DATE = "buyCarDate";

		/**
		 * 是否由小O刷新的车况
		 */
		public static final String IF_REFRESH_DATA_FROM_MRO = "ifRefreshDataFromMro";
		/**
		 * 首页显示车辆刷新提示
		 */
		public static final String IF_NOTIFIY_VEHICLE_REFRESH = "ifNotifyVehicleRefresh";
		/**
		 * 保存首页车辆报告数据分享协议是否弹出对话框更改字段
		 */
		public static final String HAS_SHOWED_CARASSESSMENT_DIALOG = "hasShowCarAssessmentDialog";
		/**
		 * 保存report更改字段
		 */
		public static final String ALTER_REPORT = "alterReport";
		/**
		 * 保存report更改字段
		 */
		public static final String ALTER_REPORT_FOR_MRO = "alterReportForMro";

		/**
		 * 记录更新版本的Version code，显示不同版本用户看到的引导页
		 */
		public static final String LAST_VERSION = "lastVersion";

		/**
		 * 记录用户登录时返回的mashedUserName值
		 */
		public static final String MASKED_USER_NAME = "maskedusername";
		
		/**
		 * 记录用户的密码,仅供用户升级为车主时候做自动登录使用
		 */
		public static final String MASKED_USER_PASS = "maskeduserpass";

		/**
		 * 记录用户登录时登录名
		 */
		public static final String USER_NAME_KEY = "usernameKey";
		/**
		 * 记录用户登录时登录名,记录未mask的名字
		 */
		public static final String LOGIN_NAME_KEY = "loginNameKey";

		/**
		 * 
		 */
		public static final String IS_DATA_LOAD = "is_data_load";
		/**
		 * 远程操作成功，是否播放声音
		 */
		public static final String IS_PALY_SOUND = "is_paly_sound";
		/**
		 * 驾驶行为协议
		 */
		public static final String AGREED_BEHAVIOR = "Agreed_behavior";
		/**
		 * 驾驶行为判断用户是否是第一次点进
		 */
		public static final String ISFIRSTINFO = "isFirstInfo";
		/**
		 * 车况检测报告
		 */
		public static final String AGREED_CAR_ASSESSMENT = "Agreed_car_assessment";
		/**
		 * 远程操作成功，是否提示震动
		 */
		public static final String IS_VIBARTOR = "is_data_load";
		/**
		 * 是否自动刷新车况数据
		 */
		public static final String OVD_AUTO_REFRESH = "OVD_auto_refresh";
		/**
		 * 保存TBT更改
		 */
		public static final String TBT_CHOOSE_SAVE = "TBT";

		/**
		 * 保存ODD更改
		 */
		public static final String ODD_CHOOSE_SAVE = "ODD";
		/**
		 * 是否开启小O
		 */
		public static final String IS_USE_MRO = "is_use_mro";

		public static final String IS_USE_MRO(Context context) {
			return IS_USE_MRO + ApplicationUtil.getInstance().getIdpID();
		}
		/**
		 * 是否从登录页面跳转回来
		 */
		public static final String IS_FROM_LOGIN = "is_from_login";
		/**
		 * 是否点击过设置页面的小O服务
		 */
		public static final String IS_SETTING_MRO_CLICK = "is_setting_mro_click";
		
		public static final String CURRENT_VERSION = "current_version";


		/**
		 * 用户当前位置的经度
		 */
		public static final String USER_CURRENT_LOCATION_LATITUDE = "user_current_location_latitude";

		/**
		 * 用户当前位置的维度
		 */
		public static final String USER_CURRENT_LOCATION_LONGITUDE = "user_current_location_longitude";

		/**
		 * 用户当前城市的信息或code
		 */
		public static final String USER_CURRENT_CITY_INFO = "user_current_city_info";
	}

	public final class MroConstants {
		public static final int ONTHERESULT = 0x100;
		public static final int ONVOLUME = 0x101;
		public static final int ONPLAYVOLUME = 0x102;
		public static final int ONENDPLAY = 0x103;
		public static final int ONERROR= 0x104;

		/**
		 * 小O的形象保存
		 */
		public static final String MRO_FIGURE_KEY = "MRO_FIGURE_KEY";
		public static final String MRO_FIGURE_DEFAULT = "MRO_FIGURE_DEFAULT";
		public static final String MRO_FIGURE_BRAND = "MRO_FIGURE_BRAND";
		public static final String MRO_FIGURE_WTK = "MRO_FIGURE_WTK";
	}

	public final class PlateEngineNumber{
		public static final String PLATE_ENGINE_FLAG="plateEngineFlag";
	}

	public final class Register{
		public static final int CHECK_OK=0;
		public static final int NO_ERROR=-1;
		public static final int SHOW_LOADING=-2;
		public static final int CHECK_CANCEl=-3;
	}

	public static final int COUNT_HOT_FUNCTION = 4;
}
